package cn.iocoder.yudao.module.scrm.controller.admin.order.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import cn.iocoder.yudao.framework.mybatis.core.type.StringListTypeHandler;
import cn.iocoder.yudao.module.scrm.controller.admin.commom.vo.FileInfoVO;
import cn.iocoder.yudao.module.scrm.dal.dataobject.order.OrderDO;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.TIME_ZONE_DEFAULT;
import static cn.iocoder.yudao.module.scrm.enums.DictTypeConstants.*;

@Schema(description = "管理后台 - 订单 Response VO")
@Data
@ExcelIgnoreUnannotated
public class OrderRespVO extends BaseDO {
    @Schema(description = "系统编号")
    @ExcelProperty("订单编号")
    private String systemNumber;

    @Schema(description = "订单标题")
    @ExcelProperty("订单标题")
    private String title;

    @Schema(description = "-关联客户-客户名称-显示")
    @ExcelProperty("关联客户")
    private String customerName;

    @Schema(description = "订单总金额-关联产品后订单金额显示为产品报价总金额；但是可以修改。")
    @ExcelProperty("订单总金额")
    private BigDecimal orderTotalMoney;

    @Schema(description = "关联-已回款金额-待查")
    @ExcelProperty("已回款金额")
    private BigDecimal receivableMoney;

    @Schema(description = "关联-已开票金额-待查")
    @ExcelProperty("已开票金额")
    private BigDecimal invoiceMoney;

    @Schema(description = "归属人员姓名-显示", example = "14003")
    @ExcelProperty("负责人")
    private String ownerUserIdName;

    @Schema(description = "归属人员部门-所属部门-显示", example = "14003")
    @ExcelProperty("负责人部门")
    private String ownerUserIdDept;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "订单类型  scrm_order_type", example = "1")
    @ExcelProperty(value = "订单类型")
    private String orderType;

    @Schema(description = "签单日期")
    @ExcelProperty("签单日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY, timezone = TIME_ZONE_DEFAULT)
    private LocalDate signingDate;

    @Schema(description = "到期日期")
    @ExcelProperty("到期日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY, timezone = TIME_ZONE_DEFAULT)
    private LocalDate expireDate;

    @Schema(description = "客户签约人")
    @ExcelProperty("客户签约人")
    private String clientSignatory;

    @Schema(description = "我方签约人-显示")
    @ExcelProperty("我方签约人")
    private String ourSignatoryName;

    @Schema(description = "付款方式   scrm_payment_method")
    @ExcelProperty(value = "付款方式")
    private String paymentMethod;

    @Schema(description = "备注信息", example = "随便")
    @ExcelProperty("备注信息")
    private String remark;










    @Schema(description = " >创建人员姓名-显示", example = "9662")
    private String creatorName;

    @Schema(description = " >前归属人员姓名-显示", example = "9662")
    private String oldOwnerUserIdName;

    @Schema(description = "前归属人员部门名称-显示", example = "9662")
    private String oldOwnerUserIdDept;









    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "2907")
    //@ExcelProperty("id")
    private Integer id;



    @Schema(description = "关联客户id", example = "4499")
    //@ExcelProperty("关联客户id")
    private Integer customerId;

    @Schema(description = "关联产品id", example = "11358")
    //@ExcelProperty("关联产品id")
    private Integer productId;









    @Schema(description = "开始日期")
    //@ExcelProperty("开始日期")
    private LocalDateTime startDate;





    @Schema(description = "我方签约人")
    //@ExcelProperty("我方签约人")
    private String ourSignatory;







    @Schema(description = "归属人员id", example = "14003")
    //@ExcelProperty("归属人员id")
    private String ownerUserId;

    @Schema(description = "前归属人员id", example = "30080")
    //@ExcelProperty("前归属人员id")
    private String oldOwnerUserId;

    @Schema(description = "审批流id", example = "1371")
    //@ExcelProperty("审批流id")
    private String instanceId;

    @Schema(description = "订单是否提交审批    0未提交  1已提交")
    //@ExcelProperty("订单是否提交审批    0未提交  1已提交")
    private String instanceIfSubmit;

    @Schema(description = "审批状态-绑定流程表的审批状态")
    //@ExcelProperty("审批状态-绑定流程表的审批状态")
    private String instanceState;

   /* @Schema(description = "附件url", example = "https://www.iocoder.cn")
    @ExcelProperty("附件url")
    private Object fileUrl;

    @Schema(description = "附件url", example = "https://www.iocoder.cn")
    @ExcelProperty("附件url")
    private List<OrderFileListVo> fileUrlVo;

    @Schema(description = "附件url", example = "https://www.iocoder.cn")
    @ExcelProperty("附件url")
    private Object pictureAttachment;

    @Schema(description = "附件url", example = "https://www.iocoder.cn")
    @ExcelProperty("附件url")
    private List<OrderFileListVo> pictureAttachmentVo;*/

    @Schema(description = "附件url", example = "https://www.iocoder.cn")
    private List<FileInfoVO> fileUrl;

    @Schema(description = "图片-附件url", example = "https://www.iocoder.cn")
    private List<FileInfoVO> pictureAttachment;

    @Schema(description = "备用字段-文件名称")
    //@ExcelProperty("备用字段-文件名称")
    private  String vField;



}